#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int num=0, count=0;
	scanf("%d", &num);
	do {
		count++;
		num /= 10;
	} while (num != 0);
	printf("%d", count);
	return 0;

}